using System;
using System.Data.SqlTypes;

using System.EnterpriseServices;

using System.Collections;



namespace Gencode
{
	/// <summary>
	/// Summary description for RoundList.
	/// </summary>
	
	public interface IRoundInfo
	{
		Int32 ID{get; set;}
		String Name{get; set;}
		Byte ClassID{get; set;}
		Byte SubjectID{get; set;}
		String Description{get; set;}
		DateTime CreateDate{get; set;}
		Int32 CreateBy{get; set;}
		DateTime StartDate{get; set;}
		Byte Phase{get; set;}
		Int32 TotalTime{get; set;}
		Byte YearID{get; set;}
		Int32 PassScore{get; set;}
		Int32 NumOfExam{get; set;}
		Boolean IsPractice{get; set;}
		Byte RoundNumber{get; set;}
		
		
	}


	[Transaction(TransactionOption.NotSupported)]	
	
	public class RoundInfo:
     IRoundInfo
	{	
		private Int32 n32ID;
		private String strName  = null;
		private Byte bytClassID;
		private Byte bytSubjectID;
		private String strDescription  = null;
		private DateTime dtmCreateDate = (System.DateTime)SqlDateTime.Null;
		private Int32 n32CreateBy;
		private DateTime dtmStartDate = (System.DateTime)SqlDateTime.Null;
		private Byte bytPhase;
		private Int32 n32TotalTime;
		private Byte bytYearID;
		private Int32 n32PassScore;
		private Int32 n32NumOfExam;
		private Boolean blnIsPractice;
		private Byte bytRoundNumber;

		public RoundInfo()		
		{
		}	
		
		public Int32 ID
		{
			get
			{
				return n32ID;
			}
			set
			{
				n32ID = value;
			}
		}
		public String Name
		{
			get
			{
				return strName;
			}
			set
			{
				strName = value;
			}
		}
		public Byte ClassID
		{
			get
			{
				return bytClassID;
			}
			set
			{
				bytClassID = value;
			}
		}
		public Byte SubjectID
		{
			get
			{
				return bytSubjectID;
			}
			set
			{
				bytSubjectID = value;
			}
		}
		public String Description
		{
			get
			{
				return strDescription;
			}
			set
			{
				strDescription = value;
			}
		}
		public DateTime CreateDate
		{
			get
			{
				return dtmCreateDate;
			}
			set
			{
				dtmCreateDate = value;
			}
		}
		public Int32 CreateBy
		{
			get
			{
				return n32CreateBy;
			}
			set
			{
				n32CreateBy = value;
			}
		}
		public DateTime StartDate
		{
			get
			{
				return dtmStartDate;
			}
			set
			{
				dtmStartDate = value;
			}
		}
		public Byte Phase
		{
			get
			{
				return bytPhase;
			}
			set
			{
				bytPhase = value;
			}
		}
		public Int32 TotalTime
		{
			get
			{
				return n32TotalTime;
			}
			set
			{
				n32TotalTime = value;
			}
		}
		public Byte YearID
		{
			get
			{
				return bytYearID;
			}
			set
			{
				bytYearID = value;
			}
		}
		public Int32 PassScore
		{
			get
			{
				return n32PassScore;
			}
			set
			{
				n32PassScore = value;
			}
		}
		public Int32 NumOfExam
		{
			get
			{
				return n32NumOfExam;
			}
			set
			{
				n32NumOfExam = value;
			}
		}
		public Boolean IsPractice
		{
			get
			{
				return blnIsPractice;
			}
			set
			{
				blnIsPractice = value;
			}
		}
		public Byte RoundNumber
		{
			get
			{
				return bytRoundNumber;
			}
			set
			{
				bytRoundNumber = value;
			}
		}
		
	}
}